package lifeDomain;


public class VSpot extends Spot
{
    public VSpot()
    { }
    public VSpot(Spot spot)
    {
        gps = spot.gps;
        wifi = spot.wifi;
        lat = spot.lat;
        lon = spot.lon;
        accuracy = spot.accuracy;
        speed = spot.speed;
        type = VSPOT;
        time = spot.time;
    }
    public int compareTo(VSpot spot)
    {
    	if(((Spot)this).compareTo(spot) !=0)
    	{
    		return 1;
    	}
    	if(velocity != spot.velocity || dx != spot.dx || dy != spot.dy)
    		return 1;
    	return 0;
    }
    protected double velocity=0;
    protected double dx;      // vector
    protected double dy;

}